package com.findFish.cage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.findFish.common.annotation.Excel;
import com.findFish.common.core.domain.BaseEntity;

/**
 * 网箱容量管理对象 cage_capacity
 * 
 * @author admin
 * @date 2025-03-31
 */
public class CageCapacity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private String id;

    /** 网箱ID */
    @Excel(name = "网箱ID")
    private String cageId;

    /** 最大养殖数量（条） */
    @Excel(name = "最大养殖数量", readConverterExp = "条=")
    private Long maxCapacity;

    /** 当前养殖数量（条） */
    @Excel(name = "当前养殖数量", readConverterExp = "条=")
    private Long currentPopulation;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setCageId(String cageId) 
    {
        this.cageId = cageId;
    }

    public String getCageId() 
    {
        return cageId;
    }

    public void setMaxCapacity(Long maxCapacity) 
    {
        this.maxCapacity = maxCapacity;
    }

    public Long getMaxCapacity() 
    {
        return maxCapacity;
    }

    public void setCurrentPopulation(Long currentPopulation) 
    {
        this.currentPopulation = currentPopulation;
    }

    public Long getCurrentPopulation() 
    {
        return currentPopulation;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cageId", getCageId())
            .append("maxCapacity", getMaxCapacity())
            .append("currentPopulation", getCurrentPopulation())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
